/**
 * Created by oneminute on 8/13/14.
 */

var lz = require("../lib/utils/modules")();
var xmlParser = require("xml2json");

var xml =
    '<?xml version="1.0" encoding="utf-8"?>' +
    '<SubmitResult xmlns="http://106.ihuyi.cn/">' +
    '<code>2</code>' +
    '<msg>提交成功</msg>' +
    '<smsid>24226341</smsid>' +
    '</SubmitResult>';

var obj = xmlParser.toJson(xml, {
    object: true
}).SubmitResult;
lz.Logger.info(obj);
lz.Logger.info(obj.code, obj.msg, obj.smsid);